Skip to content

Validation context#1169

Merged
p1c2u merged 2 commits into
masterfrom
feature/validation-context
May 16, 2026
Merged

Validation context#1169
p1c2u merged 2 commits into
masterfrom
feature/validation-context

Conversation

@p1c2u
Copy link
Copy Markdown
Collaborator

@p1c2u p1c2u commented Apr 28, 2026

ValidationState with composition keywords to cache branch selection and avoid re-resolving it at unmarshal time.

  • Remove duplicate schema validation during unmarshalling by introducing an internal trusted ValidationState path and reusing it through nested/composed schemas.
  • Add regression coverage to confirm request and response body schemas are validated only once during unmarshal.
  • Extend multipart form deserialization to correctly resolve oneOf/anyOf branches with typed form fields, including preserving encoding metadata and normalizing multipart form values before casting.
variant median ops/s vs master
master 3.37s 297
feature 2.67s 375 −20.5% faster

@p1c2u p1c2u force-pushed the feature/validation-context branch 4 times, most recently from f49fbd9 to 9e0285f Compare April 28, 2026 12:34
@p1c2u p1c2u force-pushed the feature/validation-context branch 2 times, most recently from cb4a753 to 36694ab Compare May 15, 2026 09:53
@p1c2u p1c2u force-pushed the feature/validation-context branch 2 times, most recently from 7bc3f45 to 33dfee4 Compare May 16, 2026 15:13
@p1c2u p1c2u force-pushed the feature/validation-context branch from 33dfee4 to 88c525a Compare May 16, 2026 15:35
@p1c2u p1c2u merged commit 850789a into master May 16, 2026
27 checks passed
@p1c2u p1c2u deleted the feature/validation-context branch May 16, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant